package com.mec.beans.y2012.coreservlet;

public class Catalog {
	private static CatalogItem[] items = {
		
		new CatalogItem(
				"hall001",
				"<em>Core Servlet and Java Server Pages 2nd Edition</em>(Volume 1) by Marty Hall and Larry Brown",
				"The definitive reference on servlets and JSP from Prentice Hall and \n" +
				"Sun Microsystems Press.<p>Nominated for the Nobel Prize in Literature.</p>",
				39.95
				),
		new CatalogItem(
				"hall002",
				"<em>Core Web Programming, 2nd Edition</em> by Marty Hall and Larry Brown",
				"One stop shopping for the Web Programmer. Topics in clude \n" +
				"<ul><li>Thorough converage of Java2; including Threads, Networking, Swing, \n" +
				"Java 2D, RMI, JDBC, and Collections</li>\n" +
				"<li>A fast introduction to HTML 4.01, including frames, style sheets, and layers.</li>\n" +
				"<li>A fast introduction to HTTP 1.1, servlets, and JavaServer Pages.</li>\n" +
				"<li> A quick overview of JavaScript 1.2</li></ul>",
				49.99
				),
		new CatalogItem(
				"lewis001",
				"<em>The Chronicles of Narnia</em> by C.S. Lewis",
				"The classic children's adventure pitting Aslan the Great Lion and his followers\n" +
				"against the White Witch and the forces of evil. Dragons, magicians, quests, and talking animals" +
				" wound around a deep spiritual allegory. Series includes\n" +
				"<ul><li>The Magician's Nephew</li><li>The Lion, the Witch and the Wardrobe</li>" +
				"<li>The Horse and His Boy</li><li>Prince Caspian</li><li>The Voyage of the Dawn Treader</li>" +
				"<li>The Silver Chair</li><li>The Last Battle</li></ul>",
				19.95
				),
		new CatalogItem(
				"alexander001",
				"<em>The Prydain Series</em> by Lloyd Alexander",
				"Humble Pig-keepr Taran joins mighty Lord Gwydion in his battl against Arawn the Lord of Annuvin." +
				"Joined by his loyal friends the beautiful princess Eilonwy, wannabe bard Fflewddur Fflam, and furry " +
				"half-man Gurgi, Taran discovers courage, nobility, and othervalues along the way. Series includes: " +
				"<ul><li>The Book of Three</li><li>The Black Cauldraon</li>" +
				"<li>The Castle of Llyr</li><li>Taran Wanderer</li><li>The High King</li></ul>",
				19.95
				),
		new CatalogItem(
				"rowling001",
				"<em>The Harry Potter Series</em> by J.K. Rowling",
				"The First five of the popular stories about wizard-in-training Harry Potter topped both the adult and " +
				"children's best-seller lists. Series includes<ul><li>Harry Potter and the Sorcerer's Stone</li>" +
				"<li>Harry Potter and the Chamber of Secrets</li><li>Harry Potter and the Prisoner of Azkaban</li>" +
				"<li>Harry Potter and the Goblet of Fire</li><li>Harry Potter and the Ordr of the Phoenix</li></ul>",
				59.95
				)
		
	};
	
	public static CatalogItem getItem(String itemId){
		if(null == itemId){
			return null;
		}
		
		//
		for(CatalogItem item : items){
			if(itemId.equals(item.getItemId())){
				return item;
			}
		}
		//
		return null;
	}
}
